const Timestamp = new Date().getTime();
module.exports = {
  lintOnSave: false,
  publicPath: process.env.VUE_APP_PATH,
  devServer: {
    disableHostCheck: true,
    proxy: {
      '/acitvity': {
        target: 'http://test.api.yun.web.ahxmgk.com/',
        changeOrigin: true,
        secure: false,
        // ws: true,
        pathRequiresRewrite: {
          '^/acitvity': '/acitvity'
        }
      },
      '/wechat': {
        target: 'http://test.api.yun.web.ahxmgk.com/',
        changeOrigin: true,
        secure: false,
        // ws: true,
        pathRequiresRewrite: {
          '^/wechat': '/wechat'
        }
      }
    }
  },
  configureWebpack: { // webpack 配置
    output: { // 输出重构  打包编译后的 文件名称  【模块名称.版本号.时间戳】
      // filename: `[name].${process.env.VUE_APP_Version}.${Timestamp}.js`,
      // chunkFilename: `[name].${process.env.VUE_APP_Version}.${Timestamp}.js`
    },
  }
}
